package com.ncst.backend.mapper;

import com.ncst.backend.domain.DrugLibrary;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface DrugLibraryMapper {

    List<DrugLibrary> search(@Param("key") String key, @Param("category") String category);

    int insert(DrugLibrary drug);

    int updateById(DrugLibrary drug);

    int deleteById(@Param("id") Integer id);
}